classdef classExample
    %UNTITLED 此处显示有关此类的摘要
    %   此处显示详细说明
    
    properties
        radius
        height
        magDirection
    end
    properties
        nu0 = 4*pi*10^(-7)
        Br = 1.465
    end
    methods
        function obj = classExample(a,b,c)
           obj.radius = a;
           obj.height = b;
           obj.magDirection = c;
        end
        
        function diameter = diameter(obj)
            diameter = obj.radius*2;
        end
    end
end

